package org.xc.xg;

import android.content.Context;
import android.os.Bundle;
import android.util.Log;

import com.huawei.hms.support.api.push.PushReceiver;

/**
 * Created by Administrator on 2018/9/21.
 */

public class HWReceiver extends PushReceiver {

    @Override
    public void onEvent(Context context, Event event, Bundle bundle) {
        super.onEvent(context, event, bundle);

        Log.e("HWReceiver","onEvent-->" + event.toString());
    }

    @Override
    public void onToken(Context context, String s, Bundle bundle) {
        super.onToken(context, s, bundle);

        Log.e("HWReceiver","onToken-->" + s);
    }

    @Override
    public boolean onPushMsg(Context context, byte[] bytes, Bundle bundle) {

        Log.e("HWReceiver","onPushMsg-->" + bytes.toString());
        return super.onPushMsg(context, bytes, bundle);
    }

    @Override
    public void onPushMsg(Context context, byte[] bytes, String s) {
        super.onPushMsg(context, bytes, s);

        Log.e("HWReceiver","onPushMsg-->" + s);
    }

    @Override
    public void onPushState(Context context, boolean b) {
        super.onPushState(context, b);

        Log.e("HWReceiver","onPushState-->" + b);
    }

    @Override
    public void onToken(Context context, String s) {
        super.onToken(context, s);

        Log.e("HWReceiver","onToken-->" + s);
    }
}
